/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "video_resource")
//@NamedQueries({@NamedQuery(name = "VideoResource.findAll", query = "SELECT v FROM VideoResource v"), @NamedQuery(name = "VideoResource.findByResourceid", query = "SELECT v FROM VideoResource v WHERE v.resourceid = :resourceid"), @NamedQuery(name = "VideoResource.findByVideoContentid", query = "SELECT v FROM VideoResource v WHERE v.videoContentid = :videoContentid"), @NamedQuery(name = "VideoResource.findByFilename", query = "SELECT v FROM VideoResource v WHERE v.filename = :filename"), @NamedQuery(name = "VideoResource.findByCtype", query = "SELECT v FROM VideoResource v WHERE v.ctype = :ctype"), @NamedQuery(name = "VideoResource.findBySpcode", query = "SELECT v FROM VideoResource v WHERE v.spcode = :spcode"), @NamedQuery(name = "VideoResource.findByCurl", query = "SELECT v FROM VideoResource v WHERE v.curl = :curl"), @NamedQuery(name = "VideoResource.findByDuration", query = "SELECT v FROM VideoResource v WHERE v.duration = :duration"), @NamedQuery(name = "VideoResource.findByLength", query = "SELECT v FROM VideoResource v WHERE v.length = :length"), @NamedQuery(name = "VideoResource.findByCformat", query = "SELECT v FROM VideoResource v WHERE v.cformat = :cformat")})
public class VideoResource implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "resourceid")
    private String resourceid;
    @Column(name = "video_contentid")
    private String videoContentid;
    @Column(name = "filename")
    private String filename;
    @Column(name = "ctype")
    private String ctype;
    @Column(name = "spcode")
    private String spcode;
    @Column(name = "curl")
    private String curl;
    @Column(name = "duration")
    private Integer duration;
    @Column(name = "length")
    private Integer length;
    @Column(name = "cformat")
    private String cformat;
    @Column(name = "useby")
    private String useby;
    @Column(name = "newformat")
    private String newformat;
    @Column(name = "fullpath")
    private String fullpath;
    
    /**
	 * useby
	 *
	 * @return  the useby
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getUseby() {
		return useby;
	}

	/**
	 * @param useby the useby to set
	 */
	public void setUseby(String useby) {
		this.useby = useby;
	}

	public VideoResource() {
    }

    public VideoResource(String resourceid) {
        this.resourceid = resourceid;
    }

    public String getResourceid() {
        return resourceid;
    }

    public void setResourceid(String resourceid) {
        this.resourceid = resourceid;
    }

    public String getVideoContentid() {
        return videoContentid;
    }

    public void setVideoContentid(String videoContentid) {
        this.videoContentid = videoContentid;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getCtype() {
        return ctype;
    }

    public void setCtype(String ctype) {
        this.ctype = ctype;
    }

    public String getSpcode() {
        return spcode;
    }

    public void setSpcode(String spcode) {
        this.spcode = spcode;
    }

    public String getCurl() {
        return curl;
    }

    public void setCurl(String curl) {
        this.curl = curl;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public String getCformat() {
        return cformat;
    }

    public void setCformat(String cformat) {
        this.cformat = cformat;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (resourceid != null ? resourceid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof VideoResource)) {
            return false;
        }
        VideoResource other = (VideoResource) object;
        if ((this.resourceid == null && other.resourceid != null) || (this.resourceid != null && !this.resourceid.equals(other.resourceid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.VideoResource[resourceid=" + resourceid + "]";
    }

	/**
	 * newformat
	 *
	 * @return  the newformat
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getNewformat() {
		return newformat;
	}

	/**
	 * @param newformat the newformat to set
	 */
	public void setNewformat(String newformat) {
		this.newformat = newformat;
	}

	/**
	 * fullpath
	 *
	 * @return  the fullpath
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getFullpath() {
		return fullpath;
	}

	/**
	 * @param fullpath the fullpath to set
	 */
	public void setFullpath(String fullpath) {
		this.fullpath = fullpath;
	}

}
